<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
</head>
<div th:fragment="copyright(userType)">
	<!-- Main Sidebar Container -->
	<aside class="main-sidebar sidebar-dark-primary elevation-4">
		<!-- Brand Logo -->
		<a href="#" class="brand-link" onclick="refreshCache()">
			<img src="../static/img/AdminLTELogo.png" alt="小小城系统" class="brand-image img-circle elevation-3"
				 style="opacity: .8">
			<span class="brand-text font-weight-light">小小城系统</span>
			&nbsp;<i class="nav-icon fas fa-refresh" title="点击刷新缓存"></i>
		</a>

		<!-- Sidebar -->
		<div class="sidebar">
			<!-- SidebarSearch Form -->
			<!--<div class="form-inline">-->
				<!--<div class="input-group" data-widget="sidebar-search">-->
					<!--<input class="form-control form-control-sidebar" type="search" placeholder="Search"-->
						   <!--aria-label="Search">-->
					<!--<div class="input-group-append">-->
						<!--<button class="btn btn-sidebar">-->
							<!--<i class="fas fa-search fa-fw"></i>-->
						<!--</button>-->
					<!--</div>-->
				<!--</div>-->
			<!--</div>-->

			<!-- Sidebar Menu -->
			<nav class="mt-2">
				<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
					data-accordion="false">
					<li class="nav-item menu-open">
						<a href="#" class="nav-link active">
							<i class="nav-icon fas fa-table"></i>
							<p>
								功能列表
								<i class="fas fa-angle-left right"></i>
							</p>
						</a>
						<ul class="nav nav-treeview">
							<li class="nav-item">
								<a class="nav-link active" onclick="addTab('main','数据查询','/query/main')">
									<i class="nav-icon fas fa-th"></i>
									<p>数据查询</p>
								</a>
							</li>
							<li class="nav-item" th:if="${userType} == 'root'">
								<a class="nav-link" onclick="addTab('datasource','数据源管理','/base/pages/datasource_deal.html')">
									<i class="nav-icon fas fa-chart-pie"></i>
									<p>数据源管理</p>
								</a>
							</li>
							<li class="nav-item" th:if="${userType} == 'root'">
								<a class="nav-link" onclick="addTab('func','功能块管理','/base/pages/func_deal.html')">
									<i class="nav-icon fas fa-columns"></i>
									<p>功能块管理</p>
								</a>
							</li>
							<li class="nav-item" th:if="${userType} == 'root'">
								<a class="nav-link" onclick="addTab('fileData','文件管理','/base/pages/fileData_deal.html')">
									<i class="nav-icon fas fa-columns"></i>
									<p>文件管理</p>
								</a>
							</li>
						</ul>
					</li>
				</ul>
			</nav>
			<!-- /.sidebar-menu -->
		</div>
		<!-- /.sidebar -->
	</aside>
</div>
</html>